package com.nanyang.tms.api.dto.request.waybill;

import java.math.BigDecimal;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

import com.nanyang.common.core.domain.ApiRequest;

import lombok.Data;
@Data
public class CalWeightVolumeRequest extends ApiRequest{
	private static final long serialVersionUID = 1L;
	@NotNull(message = "长度不能为空")
	@Digits(integer = 18, fraction=2, message = "长度 整数部分最多18位，小数部分最多2位")
	@DecimalMin(value = "0.00", message = "长度必须大于0")
	private BigDecimal length;//长
	@NotNull(message = "宽度不能为空")
	@Digits(integer = 18, fraction=2, message = "宽度整数部分最多18位，小数部分最多2位")
	@DecimalMin(value = "0.00", message = "宽度必须大于0")
    private BigDecimal width;//宽
	@NotNull(message = "高度不能为空")
	@Digits(integer = 18, fraction=2, message = "高度整数部分最多18位，小数部分最多2位")
	@DecimalMin(value = "0.00", message = "高度必须大于0")
    private BigDecimal height;//高
	@NotNull(message = "实重不能为空")
	@Digits(integer = 18, fraction=2, message = "实重整数部分最多18位，小数部分最多2位")
	@DecimalMin(value = "0.00", message = "实重必须大于0")
    private BigDecimal weight;//重
	 
	@Override
	public void requestCheck() {
		// TODO Auto-generated method stub
		
	}

}
